package geecache

// PeerPicker is the interface that must be implemented to locate
// the peer that owns a specific key
// 获取peer的一个接口，通过一个key，然后获取一个peer
type PeerPicker interface {
	PickPeer(key string) (peer PeerGetter, ok bool)
}

// PeerGetter is the interface that must be implemented by a peer
// peer必须实现PeerGetter的Get方法
type PeerGetter interface {
	Get(group string, key string) ([]byte, error)
}
